package springboot1706.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import springboot1706.bean.Cart;
import springboot1706.bean.Goods;
import springboot1706.bean.Gw;
import springboot1706.dao.GwMapper;
@Service
public class GwServiceImpl {
	@Autowired
	  private GwMapper gwMapper;
	  
	  public int insert(Gw gw) {
		  return gwMapper.insert(gw);
	  }
	  public int delete(Gw gw) {
		  return gwMapper.delete(gw);
	  }
	  public int deleteAll(Cart cart) {
		  return gwMapper.deleteAll(cart);
	  }
	  public int update(Gw gw) {
		  return gwMapper.update(gw);
	  }
	  public int updateKc(Goods goods) {
		  return gwMapper.updateKc(goods);
	  }
	  public List<Goods> getGoods(Goods goods){
		  return gwMapper.getGoods(goods);
	  }
	  public List<Gw>getAll(Gw gw){
		  return gwMapper.getAll(gw);
	  }
		public List<Gw> getGwByGid(Gw gw) {
			return gwMapper.getGwByGid(gw);
		}
		 public int updateZt(Gw gw) {
			  return gwMapper.updateZt(gw);
		  }

}
